﻿using EasyToHelp.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using EasyToHelp.Common;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace EasyToHelp.Business
{
    public static class SysUsersBusiness
    {
        /// <summary>
        /// 获取单个系统用户信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static SysUsers GetSysUsers(SysUsers model)
        {
            return JsonHelper.DeserializeJsonToObject<SysUsers>(HttpHelper.HttpGet(string.Format(APIConfig.SysUsersGetModel, model.UserName, model.UserPwd)));
        }
        public static List<SysUsers> GetUsersList()
        {
            return JsonHelper.DeserializeJsonToList<SysUsers>(HttpHelper.HttpGet(APIConfig.SysUsersGetList));
        }
    }
}
